home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form Form1
- AutoRedraw = -1 'True
- BackColor = &H00C0C0C0&
- Caption = "CURLIBM by Pierre Fillion (c)1992"
- ClientHeight = 6090
- ClientLeft = 585
- ClientTop = 1770
- ClientWidth = 6765
- Height = 6495
- Left = 525
- LinkMode = 1 'Source
- LinkTopic = "Form1"
- ScaleHeight = 6090
- ScaleWidth = 6765
- Top = 1425
- Width = 6885
- Begin CommandButton Command1
- Caption = "E&xit"
- Height = 315
- Left = 1950
- TabIndex = 0
- Top = 5550
- Width = 3315
- End
- Begin Timer Timer1
- Left = 150
- Top = 5550
- End
- Begin PictureBox Picture1
- Height = 915
- Index = 28
- Left = 3450
- ScaleHeight = 885
- ScaleWidth = 885
- TabIndex = 27
- Top = 4500
- Width = 915
- End
- Begin PictureBox Picture1
- Height = 915
- Index = 27
- Left = 2400
- ScaleHeight = 885
- ScaleWidth = 885
- TabIndex = 26
- Top = 4500
- Width = 915
- End
- Begin PictureBox Picture1
- Height = 915
- Index = 26
- Left = 1350
- ScaleHeight = 885
- ScaleWidth = 885
- TabIndex = 25
- Top = 4500
- Width = 915
- End
- Begin PictureBox Picture1
- Height = 915
- Index = 25
- Left = 300
- ScaleHeight = 885
- ScaleWidth = 885
- TabIndex = 28
- Top = 4500
- Width = 915
- End
- Begin PictureBox Picture1
- Height = 915
- Index = 24
- Left = 5550
- ScaleHeight = 885
- ScaleWidth = 885
- TabIndex = 24
- Top = 3450
- Width = 915
- End
- Begin PictureBox Picture1
- Height = 915
- Index = 23
- Left = 4500
- ScaleHeight = 885
- ScaleWidth = 885
- TabIndex = 23
- Top = 3450
- Width = 915
- End
- Begin PictureBox Picture1
- Height = 915
- Index = 22
- Left = 3450
- ScaleHeight = 885
- ScaleWidth = 885
- TabIndex = 22
- Top = 3450
- Width = 915
- End
- Begin PictureBox Picture1
- Height = 915
- Index = 21
- Left = 2400
- ScaleHeight = 885
- ScaleWidth = 885
- TabIndex = 21
- Top = 3450
- Width = 915
- End
- Begin PictureBox Picture1
- Height = 915
- Index = 20
- Left = 1350
- ScaleHeight = 885
- ScaleWidth = 885
- TabIndex = 20
- Top = 3450
- Width = 915
- End
- Begin PictureBox Picture1
- Height = 915
- Index = 19
- Left = 300
- ScaleHeight = 885
- ScaleWidth = 885
- TabIndex = 19
- Top = 3450
- Width = 915
- End
- Begin PictureBox Picture1
- Height = 915
- Index = 18
- Left = 5550
- ScaleHeight = 885
- ScaleWidth = 885
- TabIndex = 18
- Top = 2400
- Width = 915
- End
- Begin PictureBox Picture1
- Height = 915
- Index = 17
- Left = 4500
- ScaleHeight = 885
- ScaleWidth = 885
- TabIndex = 16
- Top = 2400
- Width = 915
- End
- Begin PictureBox Picture1
- Height = 915
- Index = 16
- Left = 3450
- ScaleHeight = 885
- ScaleWidth = 885
- TabIndex = 15
- Top = 2400
- Width = 915
- End
- Begin PictureBox Picture1
- Height = 915
- Index = 15
- Left = 2400
- ScaleHeight = 885
- ScaleWidth = 885
- TabIndex = 14
- Top = 2400
- Width = 915
- End
- Begin PictureBox Picture1
- Height = 915
- Index = 14
- Left = 1350
- ScaleHeight = 885
- ScaleWidth = 885
- TabIndex = 13
- Top = 2400
- Width = 915
- End
- Begin PictureBox Picture1
- Height = 915
- Index = 13
- Left = 300
- ScaleHeight = 885
- ScaleWidth = 885
- TabIndex = 12
- Top = 2400
- Width = 915
- End
- Begin PictureBox Picture1
- Height = 915
- Index = 12
- Left = 5550
- ScaleHeight = 885
- ScaleWidth = 885
- TabIndex = 17
- Top = 1350
- Width = 915
- End
- Begin PictureBox Picture1
- Height = 915
- Index = 11
- Left = 4500
- ScaleHeight = 885
- ScaleWidth = 885
- TabIndex = 11
- Top = 1350
- Width = 915
- End
- Begin PictureBox Picture1
- Height = 915
- Index = 10
- Left = 3450
- ScaleHeight = 885
- ScaleWidth = 885
- TabIndex = 10
- Top = 1350
- Width = 915
- End
- Begin PictureBox Picture1
- Height = 915
- Index = 9
- Left = 2400
- ScaleHeight = 885
- ScaleWidth = 885
- TabIndex = 9
- Top = 1350
- Width = 915
- End
- Begin PictureBox Picture1
- Height = 915
- Index = 8
- Left = 1350
- ScaleHeight = 885
- ScaleWidth = 885
- TabIndex = 8
- Top = 1350
- Width = 915
- End
- Begin PictureBox Picture1
- Height = 915
- Index = 7
- Left = 300
- ScaleHeight = 885
- ScaleWidth = 885
- TabIndex = 7
- Top = 1350
- Width = 915
- End
- Begin PictureBox Picture1
- Height = 915
- Index = 6
- Left = 5550
- ScaleHeight = 885
- ScaleWidth = 885
- TabIndex = 6
- Top = 300
- Width = 915
- End
- Begin PictureBox Picture1
- Height = 915
- Index = 5
- Left = 4500
- ScaleHeight = 885
- ScaleWidth = 885
- TabIndex = 5
- Top = 300
- Width = 915
- End
- Begin PictureBox Picture1
- Height = 915
- Index = 4
- Left = 3450
- ScaleHeight = 885
- ScaleWidth = 885
- TabIndex = 4
- Top = 300
- Width = 915
- End
- Begin PictureBox Picture1
- Height = 915
- Index = 3
- Left = 2400
- ScaleHeight = 885
- ScaleWidth = 885
- TabIndex = 3
- Top = 300
- Width = 915
- End
- Begin PictureBox Picture1
- Height = 915
- Index = 2
- Left = 1350
- ScaleHeight = 885
- ScaleWidth = 885
- TabIndex = 2
- Top = 300
- Width = 915
- End
- Begin PictureBox Picture1
- Height = 915
- Index = 1
- Left = 300
- ScaleHeight = 885
- ScaleWidth = 885
- TabIndex = 1
- Top = 300
- Width = 915
- End
- Begin Label Label1
- BorderStyle = 1 'Fixed Single
- Height = 915
- Left = 4500
- TabIndex = 29
- Top = 4500
- Width = 1965
- End
- DefInt A-Z
- 'API functions to manipulate cursor libraries
- Declare Function LoadLibrary Lib "kernel" (ByVal LibName$)
- Declare Function LoadCursor Lib "user" (ByVal hInstance, ByVal CursorName$)
- Declare Function SetClassWord Lib "user" (ByVal hWnd, ByVal nIndex, ByVal NewVal)
- Declare Function DestroyCursor Lib "user" (ByVal Handle)
- Declare Function GetFocus Lib "user" ()
- Declare Function APISetFocus Lib "user" Alias "SetFocus" (ByVal hWnd)
- Declare Sub GetCursorPos Lib "user" (p As PointType)
- Declare Function WindowFromPoint Lib "user" (ByVal y, ByVal x)
- Declare Function ShowCursor Lib "User" (ByVal State%) As Integer
- Declare Function SetCursorPos Lib "User" (ByVal x%, ByVal y%) As Integer
- Const GCW_HCURSOR = (-12)
- 'Control Variable for cursors animations
- Dim LastTMP As Long
- 'Cursors Handles
- Dim SysCursHandle
- Dim CursHandle(0 To 114)
- 'Objects hWnd
- Dim PicturehWnd(1 To 28)
- Dim Command1hWnd
- 'Type for cursor positions
- Dim p As PointType
- Sub Command1_Click ()
- Unload Form1
- End Sub
- Sub Form_Load ()
- Form1.Show
- 'Load Libraries
- DLLInstance = LoadLibrary("c:\windows\curr.dll")
- DLLInstance2 = LoadLibrary("c:\windows\curr2.dll")
- 'First Library of cursors
- CursHandle(0) = LoadCursor(DLLInstance, "A0")
- CursHandle(1) = LoadCursor(DLLInstance, "A1")
- CursHandle(2) = LoadCursor(DLLInstance, "A2")
- CursHandle(3) = LoadCursor(DLLInstance, "A3")
- CursHandle(4) = LoadCursor(DLLInstance, "A4")
- CursHandle(5) = LoadCursor(DLLInstance, "A5")
- CursHandle(6) = LoadCursor(DLLInstance, "A6")
- CursHandle(7) = LoadCursor(DLLInstance, "A7")
- CursHandle(8) = LoadCursor(DLLInstance, "BOMB0")
- CursHandle(9) = LoadCursor(DLLInstance, "BOMB1")
- CursHandle(10) = LoadCursor(DLLInstance, "CLOCK0")
- CursHandle(11) = LoadCursor(DLLInstance, "CLOCK1")
- CursHandle(12) = LoadCursor(DLLInstance, "CLOCK2")
- CursHandle(13) = LoadCursor(DLLInstance, "CLOCK3")
- CursHandle(14) = LoadCursor(DLLInstance, "CLOCK4")
- CursHandle(15) = LoadCursor(DLLInstance, "CLOCK5")
- CursHandle(16) = LoadCursor(DLLInstance, "CLOCK6")
- CursHandle(17) = LoadCursor(DLLInstance, "CLOCK7")
- CursHandle(18) = LoadCursor(DLLInstance, "LAMP0")
- CursHandle(19) = LoadCursor(DLLInstance, "LAMP1")
- CursHandle(20) = LoadCursor(DLLInstance, "HG0")
- CursHandle(21) = LoadCursor(DLLInstance, "HG1")
- CursHandle(22) = LoadCursor(DLLInstance, "HG2")
- CursHandle(23) = LoadCursor(DLLInstance, "HG3")
- CursHandle(24) = LoadCursor(DLLInstance, "HG4")
- CursHandle(25) = LoadCursor(DLLInstance, "HG5")
- CursHandle(26) = LoadCursor(DLLInstance, "HG6")
- CursHandle(27) = LoadCursor(DLLInstance, "HG7")
- CursHandle(28) = LoadCursor(DLLInstance, "HG8")
- CursHandle(29) = LoadCursor(DLLInstance, "HG9")
- CursHandle(30) = LoadCursor(DLLInstance, "WATCH0")
- CursHandle(31) = LoadCursor(DLLInstance, "WATCH1")
- CursHandle(32) = LoadCursor(DLLInstance, "WATCH2")
- CursHandle(33) = LoadCursor(DLLInstance, "WATCH3")
- CursHandle(34) = LoadCursor(DLLInstance, "ZZZ")
- CursHandle(35) = LoadCursor(DLLInstance, "SWORD")
- CursHandle(36) = LoadCursor(DLLInstance, "PIRANHA")
- CursHandle(37) = LoadCursor(DLLInstance, "CUT0")
- CursHandle(38) = LoadCursor(DLLInstance, "CUT1")
- CursHandle(39) = LoadCursor(DLLInstance, "CUT2")
- CursHandle(40) = LoadCursor(DLLInstance, "CUP0")
- CursHandle(41) = LoadCursor(DLLInstance, "CUP1")
- CursHandle(42) = LoadCursor(DLLInstance, "CUP2")
- CursHandle(43) = LoadCursor(DLLInstance, "CUP3")
- CursHandle(44) = LoadCursor(DLLInstance, "CUP4")
- CursHandle(45) = LoadCursor(DLLInstance, "CUP5")
- CursHandle(46) = LoadCursor(DLLInstance, "CUP6")
- CursHandle(47) = LoadCursor(DLLInstance, "CUP7")
- CursHandle(48) = LoadCursor(DLLInstance, "CUP8")
- CursHandle(49) = LoadCursor(DLLInstance, "CUP9")
- CursHandle(50) = LoadCursor(DLLInstance, "TIC0")
- CursHandle(51) = LoadCursor(DLLInstance, "TIC1")
- CursHandle(52) = LoadCursor(DLLInstance, "TIC2")
- CursHandle(53) = LoadCursor(DLLInstance, "TIC3")
- CursHandle(54) = LoadCursor(DLLInstance, "SCREW0")
- CursHandle(55) = LoadCursor(DLLInstance, "SCREW1")
- CursHandle(56) = LoadCursor(DLLInstance, "SCREW2")
- CursHandle(57) = LoadCursor(DLLInstance, "SCREW3")
- CursHandle(58) = LoadCursor(DLLInstance, "SCREW4")
- CursHandle(59) = LoadCursor(DLLInstance, "SCREW5")
- CursHandle(60) = LoadCursor(DLLInstance, "SPIRAL0")
- CursHandle(61) = LoadCursor(DLLInstance, "SPIRAL1")
- CursHandle(62) = LoadCursor(DLLInstance, "SPIRAL2")
- CursHandle(63) = LoadCursor(DLLInstance, "SPIRAL3")
- CursHandle(64) = LoadCursor(DLLInstance, "SPIRAL4")
- CursHandle(65) = LoadCursor(DLLInstance, "SPIRAL5")
- CursHandle(66) = LoadCursor(DLLInstance, "SPIRAL6")
- CursHandle(67) = LoadCursor(DLLInstance, "SPIRAL7")
- CursHandle(68) = LoadCursor(DLLInstance, "SPIRAL8")
- CursHandle(69) = LoadCursor(DLLInstance, "SPIRAL9")
- CursHandle(70) = LoadCursor(DLLInstance, "TERMO0")
- CursHandle(71) = LoadCursor(DLLInstance, "TERMO1")
- CursHandle(72) = LoadCursor(DLLInstance, "TERMO2")
- CursHandle(73) = LoadCursor(DLLInstance, "TERMO3")
- CursHandle(74) = LoadCursor(DLLInstance, "TERMO4")
- CursHandle(75) = LoadCursor(DLLInstance, "TERMO5")
- CursHandle(76) = LoadCursor(DLLInstance, "TERMO6")
- CursHandle(77) = LoadCursor(DLLInstance, "TERMO7")
- CursHandle(78) = LoadCursor(DLLInstance, "TERMO8")
- CursHandle(79) = LoadCursor(DLLInstance, "RAD0")
- CursHandle(80) = LoadCursor(DLLInstance, "RAD1")
- CursHandle(81) = LoadCursor(DLLInstance, "RAD2")
- CursHandle(82) = LoadCursor(DLLInstance, "RAD3")
- CursHandle(83) = LoadCursor(DLLInstance, "RAD4")
- CursHandle(84) = LoadCursor(DLLInstance, "HANDUP")
- CursHandle(85) = LoadCursor(DLLInstance, "HANDOPEN")
- CursHandle(86) = LoadCursor(DLLInstance, "HANDUR")
- CursHandle(87) = LoadCursor(DLLInstance, "LOOK")
- CursHandle(88) = LoadCursor(DLLInstance, "PAINT")
- CursHandle(89) = LoadCursor(DLLInstance, "MA0")
- CursHandle(90) = LoadCursor(DLLInstance, "MA1")
- CursHandle(91) = LoadCursor(DLLInstance, "MA2")
- CursHandle(92) = LoadCursor(DLLInstance, "MA3")
- CursHandle(93) = LoadCursor(DLLInstance, "MA4")
- CursHandle(94) = LoadCursor(DLLInstance, "MA5")
- CursHandle(95) = LoadCursor(DLLInstance, "MA6")
- CursHandle(96) = LoadCursor(DLLInstance, "MA7")
- CursHandle(97) = LoadCursor(DLLInstance, "MA8")
- CursHandle(98) = LoadCursor(DLLInstance, "MA9")
- CursHandle(99) = LoadCursor(DLLInstance, "JHG0")
- CursHandle(100) = LoadCursor(DLLInstance, "JHG1")
- CursHandle(101) = LoadCursor(DLLInstance, "JHG2")
- CursHandle(102) = LoadCursor(DLLInstance, "JHG3")
- CursHandle(103) = LoadCursor(DLLInstance, "JHG4")
- CursHandle(104) = LoadCursor(DLLInstance, "JHG5")
- CursHandle(105) = LoadCursor(DLLInstance, "JHG6")
- CursHandle(106) = LoadCursor(DLLInstance, "JHG7")
- CursHandle(107) = LoadCursor(DLLInstance, "JHG8")
- CursHandle(108) = LoadCursor(DLLInstance, "JHG9")
- 'Second Library of cursors
- CursHandle(109) = LoadCursor(DLLInstance2, "WRITE")
- CursHandle(110) = LoadCursor(DLLInstance2, "ERASE")
- CursHandle(111) = LoadCursor(DLLInstance2, "OK")
- CursHandle(112) = LoadCursor(DLLInstance2, "CANCEL")
- CursHandle(113) = LoadCursor(DLLInstance2, "MOUSE")
- CursHandle(114) = LoadCursor(DLLInstance2, "NO")
- SysCursHandle = SetClassWord(Form1.hWnd, GCW_HCURSOR, CursHandle(34))
- 'Get the current control with the input focus.
- CurrHwnd = GetFocus()
- 'Get the Pictures box handles
- For A = 1 To 28
- Form1.Picture1(A).SetFocus
- PicturehWnd(A) = GetFocus()
- Next A
- 'Get the Window handle of Command1.
- Command1.SetFocus
- Command1hWnd = GetFocus()
- 'Restore the focus to the control with the input focus
- r = APISetFocus(CurrHwnd)
- 'One millisecond
- Timer1.Interval = 1
- Timer1.Enabled = -1
- End Sub
- Sub Form_Unload (Cancel As Integer)
- 'Restore the custom cursors to the system cursor:
- '(CursHandle(3) is the windows arrow)
- 'Remove the rem if you want to fix the observation reported in note 1 in CURLIBM.BAS
- 'LastCursor = SetClassWord(Form1.hWnd, GCW_HCURSOR, CursHandle(3))
- 'LastCursor = SetClassWord(Command1hWnd, GCW_HCURSOR, CursHandle(3))
- 'Delete the cursor resources from memory:
- For A = 1 To 114
- Success = DestroyCursor(CursHandle(A))
- Next A
- End Sub
- Sub Timer1_Timer ()
- 'Get the current (absolute) cursor position
- Call GetCursorPos(p)
- 'Find out which control the midpoint of the cursor is over (The cursor
- 'is 32 x 32 pixels square) and change the class word of the control
- 'to the appropriate cursor.
- Select Case WindowFromPoint(p.y, p.x)
- Case Form1.hWnd:
- LastCursor = SetClassWord(Form1.hWnd, GCW_HCURSOR, CursHandle(34))
- Case Command1hWnd:
- LastCursor = SetClassWord(Command1hWnd, GCW_HCURSOR, CursHandle(3))
- Case PicturehWnd(1):
- If LastTMP > 7 Then LastTMP = 0
- LastCursor = SetClassWord(PicturehWnd(1), GCW_HCURSOR, CursHandle(LastTMP))
- LastTMP = LastTMP + 1
- Case PicturehWnd(2):
- If LastTMP <> 1 Then
- LastCursor = SetClassWord(PicturehWnd(2), GCW_HCURSOR, CursHandle(8))
- LastTMP = 1
- Else
- LastCursor = SetClassWord(PicturehWnd(2), GCW_HCURSOR, CursHandle(9))
- LastTMP = 2
- End If
- Case PicturehWnd(3):
- If LastTMP / 3 = Int(LastTMP / 3) Then
- If LastTMP > 21 Then LastTMP = 0
- LastCursor = SetClassWord(PicturehWnd(3), GCW_HCURSOR, CursHandle(LastTMP / 3 + 10))
- LastTMP = LastTMP + 1
- Else
- LastTMP = LastTMP + 1
- End If
- Case PicturehWnd(4):
- If LastTMP <> 1 Then
- LastCursor = SetClassWord(PicturehWnd(4), GCW_HCURSOR, CursHandle(18))
- LastTMP = 1
- Else
- LastCursor = SetClassWord(PicturehWnd(4), GCW_HCURSOR, CursHandle(19))
- LastTMP = 2
- End If
- Case PicturehWnd(5):
- If LastTMP > 9 Then LastTMP = 0
- LastCursor = SetClassWord(PicturehWnd(5), GCW_HCURSOR, CursHandle(LastTMP + 20))
- LastTMP = LastTMP + 1
- Case PicturehWnd(6):
- If LastTMP / 12 = Int(LastTMP / 12) Then
- If LastTMP > 36 Then LastTMP = 0
- LastCursor = SetClassWord(PicturehWnd(6), GCW_HCURSOR, CursHandle((LastTMP / 12) + 30))
- LastTMP = LastTMP + 1
- Else
- LastTMP = LastTMP + 1
- End If
- Case PicturehWnd(7):
- LastCursor = SetClassWord(PicturehWnd(7), GCW_HCURSOR, CursHandle(34))
- Case PicturehWnd(8):
- LastCursor = SetClassWord(PicturehWnd(8), GCW_HCURSOR, CursHandle(35))
- Case PicturehWnd(9):
- LastCursor = SetClassWord(PicturehWnd(9), GCW_HCURSOR, CursHandle(36))
- Case PicturehWnd(10):
- If LastTMP < 3 Then
- LastCursor = SetClassWord(PicturehWnd(10), GCW_HCURSOR, CursHandle(37 + LastTMP))
- LastTMP = LastTMP + 1
- Else
- LastTMP = 0
- End If
- Case PicturehWnd(11):
- If LastTMP < 10 Then
- LastCursor = SetClassWord(PicturehWnd(11), GCW_HCURSOR, CursHandle(40 + LastTMP))
- LastTMP = LastTMP + 1
- Else
- LastTMP = 0
- End If
- Case PicturehWnd(12):
- If LastTMP < 4 Then
- LastCursor = SetClassWord(PicturehWnd(12), GCW_HCURSOR, CursHandle(50 + LastTMP))
- LastTMP = LastTMP + 1
- Else
- LastTMP = 0
- End If
- Case PicturehWnd(13):
- If LastTMP < 6 Then
- LastCursor = SetClassWord(PicturehWnd(13), GCW_HCURSOR, CursHandle(54 + LastTMP))
- LastTMP = LastTMP + 1
- Else
- LastTMP = 0
- End If
- Case PicturehWnd(14):
- If LastTMP < 10 Then
- LastCursor = SetClassWord(PicturehWnd(14), GCW_HCURSOR, CursHandle(60 + LastTMP))
- LastTMP = LastTMP + 1
- Else
- LastTMP = 0
- End If
- Case PicturehWnd(15):
- If LastTMP < 9 Then
- LastCursor = SetClassWord(PicturehWnd(15), GCW_HCURSOR, CursHandle(70 + LastTMP))
- LastTMP = LastTMP + 1
- Else
- LastTMP = 0
- End If
- Case PicturehWnd(16):
- If LastTMP < 4 Then
- LastCursor = SetClassWord(PicturehWnd(16), GCW_HCURSOR, CursHandle(79 + LastTMP))
- LastTMP = LastTMP + 1
- Else
- LastTMP = 0
- End If
- Case PicturehWnd(17):
- LastCursor = SetClassWord(PicturehWnd(17), GCW_HCURSOR, CursHandle(84))
- Case PicturehWnd(18):
- LastCursor = SetClassWord(PicturehWnd(18), GCW_HCURSOR, CursHandle(85))
- Case PicturehWnd(19):
- LastCursor = SetClassWord(PicturehWnd(19), GCW_HCURSOR, CursHandle(86))
- Case PicturehWnd(20):
- LastCursor = SetClassWord(PicturehWnd(20), GCW_HCURSOR, CursHandle(87))
- Case PicturehWnd(21):
- LastCursor = SetClassWord(PicturehWnd(21), GCW_HCURSOR, CursHandle(88))
- Case PicturehWnd(22):
- If LastTMP < 8 Then
- LastCursor = SetClassWord(PicturehWnd(22), GCW_HCURSOR, CursHandle(91 + LastTMP))
- LastTMP = LastTMP + 1
- Else
- LastTMP = 0
- End If
- Case PicturehWnd(23):
- If LastTMP < 10 Then
- LastCursor = SetClassWord(PicturehWnd(23), GCW_HCURSOR, CursHandle(99 + LastTMP))
- LastTMP = LastTMP + 1
- Else
- LastTMP = 0
- End If
- Case PicturehWnd(24):
- LastCursor = SetClassWord(PicturehWnd(24), GCW_HCURSOR, CursHandle(109))
- Case PicturehWnd(25):
- LastCursor = SetClassWord(PicturehWnd(25), GCW_HCURSOR, CursHandle(110))
- Case PicturehWnd(26):
- LastCursor = SetClassWord(PicturehWnd(26), GCW_HCURSOR, CursHandle(111))
- Case PicturehWnd(27):
- LastCursor = SetClassWord(PicturehWnd(27), GCW_HCURSOR, CursHandle(112))
- Case PicturehWnd(28):
- LastCursor = SetClassWord(PicturehWnd(28), GCW_HCURSOR, CursHandle(113))
- End Select
- 'Redisplay cursor for animation
- Ret% = SetCursorPos(p.x, p.y)
- 'Write the cursor position in Label1
- Form1.Label1.Caption = "Position" + Chr$(13) + "X:" + Str$(p.x) + Chr$(13) + "Y:" + Str$(p.y)
- End Sub
-